import request from '@/utils/request'

//登录请求
export const userLogin = ({ username, password }) => {
  console.log(username, password)
  return request.post('/public/login', { username, password })
}

//获取用户信息
export const getUserInfo = (req) => {
  return request.get('/user/getdata', { params: req })
}

//新增用户
export const addUser = (req) => {
  return request.post('/public/user/register', req)
}
